home *** CD-ROM | disk | FTP | other *** search
Text File | 1989-05-01 | 2.0 KB | 81 lines | [TEXT/MPS ] |
- % ---------------------------------------------------------------------------
- % Class MacQuickdrawConst.sim
- %
- % Part of the interface to Macintosh Toolbox
- % This file contains the constant definitions from Quickdraw.p
- % it is used as parameters to Toolbox routines of Quickdraw.
- %
- % 890409/Boris Magnusson
- % ---------------------------------------------------------------------------
- class MacQuickdrawConst;
- begin
- short integer
- ! the 16 transfer modes ;
- srcCopy = 0,
- srcOr = 1,
- srcXor = 2,
- srcBic = 3,
- notSrcCopy = 4,
- notSrcOr = 5,
- notSrcXor = 6,
- notSrcBic = 7,
- patCopy = 8,
- patOr = 9,
- patXor = 10,
- patBic = 11,
- notPatCopy = 12,
- notPatOr = 13,
- notPatXor = 14,
- notPatBic = 15,
-
- ! QuickDraw color separation constants ;
-
- normalBit = 0, ! normal screen mapping ;
- inverseBit = 1, ! inverse screen mapping ;
- redBit = 4, ! RGB additive mapping ;
- greenBit = 3,
- blueBit = 2,
- cyanBit = 8, ! CMYBk subtractive mapping ;
- magentaBit = 7,
- yellowBit = 6,
- blackBit = 5,
-
- blackColor = 33, ! colors expressed in these mappings ;
- whiteColor = 30,
- redColor = 205,
- greenColor = 341,
- blueColor = 409,
- cyanColor = 273,
- magentaColor = 137,
- yellowColor = 69,
-
- picLParen = 0, ! standard picture comments ;
- picRParen = 1,
-
- ! THE FOLLOWING CONSTANTS WERE ADDED FOR COLOR QUICKDRAW. ;
-
- ! VALUES FOR GDType ;
-
- clutType = 0, ! 0 if lookup table ;
- fixedType = 1, ! 1 if fixed table ;
- directType = 2, ! 2 if direct values ;
-
- ! BIT ASSIGNMENTS FOR GDFlags ;
-
- gdDevType = 0, ! 0 = monochrome, 1 = color ;
- ramInit = 10, ! 1 if initialized from 'scrn' resource ;
- mainScreen = 11, ! 1 if main screen ;
- allInit = 12, ! 1 if all devices initialized ;
- screenDevice= 13, ! 1 if screen device [not used] ;
- noDriver = 14, ! 1 if no driver for this GDevice ;
- screenActive= 15, ! 1 if in use ;
-
- hiliteBit = 7, ! flag bit in HiliteMode (lowMem flag) ;
-
- defQDColors = 127, ! resource ID of clut for default QDColors ;
-
- invalColReq = -1; ! invalid color table request ;
-
-
- End --- Mac Quickdraw Const --- ;
-